﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter09.Code01.Code03.Snippet04
{
    class MyClass
    {
        private int myInt;

        public int MyInt
        {
            get { return myInt; }
            set
            {
                if (value >= 0 && value <= 10) myInt = value;
            }
        }

    }
}
